package com.smmisia.common.response.auth;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.smmisia.common.enums.StatusEnum;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 用户信息
 * @author smmisia
 * @date 2024/7/24
 */
@Data
public class UserResponse implements Serializable {

    private static final long serialVersionUID = 1L;

    private Integer id;
    /**
     * 名称
     */
    private String username;

    /**
     * uid
     */
    private String uid;

    /**
     * 邮箱
     */
    private String email;

    /**
     * 头像
     */
    private String avatar;

    /**
     * 状态
     */
    private StatusEnum status;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;



}